#include <typescommon.h>
#include <genrand.h>
#include <sm4.h>
// 验证网站
// https://i.goto327.top/CryptTools/SymmCrypt.aspx
int main(int argc, char **argv)
{
    uint8_t checkKey[16] = {0};
    uint8_t originStr[32] = {0};
    memcpyStr(checkKey, sizeof(checkKey), "0123456789abcdefg");
    memcpyStr(originStr, sizeof(originStr), "012345678901234567890123456789012");
    logdebug("org:%s", originStr);
    sm4EncryptePro1(originStr, sizeof(originStr), checkKey);
    logdebug("enc:%s", originStr);
    sm4DecryptePro1(originStr, sizeof(originStr), checkKey);
    logdebug("dec:%s", originStr);
    return 1;
}
